package com.myj.jim.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.myj.jim.domain.ZNodesJson;
import com.myj.jim.service.AuthorityService;

@RequestMapping("/authority")
@Controller
public class AuthorityController {
	
	@Autowired
	private AuthorityService authorityService;
	
	@RequestMapping("/getAuthorityTreeJson")
	@ResponseBody
	public List<ZNodesJson> getAuthorityTreeJson(String roleno){
		return authorityService.getAuthorityTreeJson(roleno);
	}
	
}
